package com.zhang.member.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 前台会员用户表
 * </p>
 *
 * @author 创世神
 * @since 2023-10-31
 */
@Getter
@Setter
@TableName("my_member_user")
public class MemberUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户名
     */
    @TableField("user_name")
    private String userName;

    /**
     * 昵称
     */
    @TableField("user_nickname")
    private String userNickname;

    /**
     * 密码
     */
    @TableField("password")
    private String password;

    @TableField("phone")

    private String phone;

    @TableField("email")
    private String email;

    @TableField("avatar")
    private Long avatar;

    @TableField("gender")
    private Integer gender;

    /**
     * 职业
     */
    @TableField("occupation")
    private String occupation;

    /**
     * 个性签名
     */
    @TableField("personality")
    private String personality;

    /**
     * 状态0激活，1冻结
     */
    @TableField("state")
    private Integer state;

    @TableField("create_time")
    private String createTime;

    @TableField("birth_day")
    private String birthDay;

    /**
     * md5盐值
     */
    @TableField("md5_salt")
    private String md5Salt;
    /**
     * 邮箱校验时的验证码
     */
    @TableField(exist = false)
    private String code;
}
